package com.archive.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 教研论文表
 * </p>
 *
 * @author Janus
 * @since 2024-03-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_teach_paper")
@ApiModel(value="TeachPaper对象", description="教研论文表")
public class TeachPaper implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "发布人ID")
    private Long userId;

    @ApiModelProperty(value = "发布人名称")
    private String userName;

    @ApiModelProperty(value = "论文名称")
    private String name;

    @ApiModelProperty(value = "论文编号")
    private String code;

    @ApiModelProperty(value = "分类")
    private String category;

    @ApiModelProperty(value = "状态：0 待审核；1 已审核；2 已驳回")
    private Integer state;

    @ApiModelProperty(value = "驳回意见")
    private String replyInfo;

    @ApiModelProperty(value = "出版社")
    private String publish;

    @ApiModelProperty(value = "出版日期")
    private LocalDate publishDate;

    @ApiModelProperty(value = "其他作者")
    private String otherUser;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "附件")
    private String fileInfo;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime punishStart;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime punishEnd;


}
